package cn.itcast.ssm.po;

import java.util.ArrayList;
import java.util.List;

public class ParameterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ParameterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andParameterIdIsNull() {
            addCriterion("parameter_id is null");
            return (Criteria) this;
        }

        public Criteria andParameterIdIsNotNull() {
            addCriterion("parameter_id is not null");
            return (Criteria) this;
        }

        public Criteria andParameterIdEqualTo(Integer value) {
            addCriterion("parameter_id =", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdNotEqualTo(Integer value) {
            addCriterion("parameter_id <>", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdGreaterThan(Integer value) {
            addCriterion("parameter_id >", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("parameter_id >=", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdLessThan(Integer value) {
            addCriterion("parameter_id <", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdLessThanOrEqualTo(Integer value) {
            addCriterion("parameter_id <=", value, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdIn(List<Integer> values) {
            addCriterion("parameter_id in", values, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdNotIn(List<Integer> values) {
            addCriterion("parameter_id not in", values, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdBetween(Integer value1, Integer value2) {
            addCriterion("parameter_id between", value1, value2, "parameterId");
            return (Criteria) this;
        }

        public Criteria andParameterIdNotBetween(Integer value1, Integer value2) {
            addCriterion("parameter_id not between", value1, value2, "parameterId");
            return (Criteria) this;
        }

        public Criteria andMaxTIsNull() {
            addCriterion("max_t is null");
            return (Criteria) this;
        }

        public Criteria andMaxTIsNotNull() {
            addCriterion("max_t is not null");
            return (Criteria) this;
        }

        public Criteria andMaxTEqualTo(Double value) {
            addCriterion("max_t =", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTNotEqualTo(Double value) {
            addCriterion("max_t <>", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTGreaterThan(Double value) {
            addCriterion("max_t >", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTGreaterThanOrEqualTo(Double value) {
            addCriterion("max_t >=", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTLessThan(Double value) {
            addCriterion("max_t <", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTLessThanOrEqualTo(Double value) {
            addCriterion("max_t <=", value, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTIn(List<Double> values) {
            addCriterion("max_t in", values, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTNotIn(List<Double> values) {
            addCriterion("max_t not in", values, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTBetween(Double value1, Double value2) {
            addCriterion("max_t between", value1, value2, "maxT");
            return (Criteria) this;
        }

        public Criteria andMaxTNotBetween(Double value1, Double value2) {
            addCriterion("max_t not between", value1, value2, "maxT");
            return (Criteria) this;
        }

        public Criteria andMinTIsNull() {
            addCriterion("min_t is null");
            return (Criteria) this;
        }

        public Criteria andMinTIsNotNull() {
            addCriterion("min_t is not null");
            return (Criteria) this;
        }

        public Criteria andMinTEqualTo(Double value) {
            addCriterion("min_t =", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTNotEqualTo(Double value) {
            addCriterion("min_t <>", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTGreaterThan(Double value) {
            addCriterion("min_t >", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTGreaterThanOrEqualTo(Double value) {
            addCriterion("min_t >=", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTLessThan(Double value) {
            addCriterion("min_t <", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTLessThanOrEqualTo(Double value) {
            addCriterion("min_t <=", value, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTIn(List<Double> values) {
            addCriterion("min_t in", values, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTNotIn(List<Double> values) {
            addCriterion("min_t not in", values, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTBetween(Double value1, Double value2) {
            addCriterion("min_t between", value1, value2, "minT");
            return (Criteria) this;
        }

        public Criteria andMinTNotBetween(Double value1, Double value2) {
            addCriterion("min_t not between", value1, value2, "minT");
            return (Criteria) this;
        }

        public Criteria andMaxHIsNull() {
            addCriterion("max_h is null");
            return (Criteria) this;
        }

        public Criteria andMaxHIsNotNull() {
            addCriterion("max_h is not null");
            return (Criteria) this;
        }

        public Criteria andMaxHEqualTo(Double value) {
            addCriterion("max_h =", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHNotEqualTo(Double value) {
            addCriterion("max_h <>", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHGreaterThan(Double value) {
            addCriterion("max_h >", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHGreaterThanOrEqualTo(Double value) {
            addCriterion("max_h >=", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHLessThan(Double value) {
            addCriterion("max_h <", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHLessThanOrEqualTo(Double value) {
            addCriterion("max_h <=", value, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHIn(List<Double> values) {
            addCriterion("max_h in", values, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHNotIn(List<Double> values) {
            addCriterion("max_h not in", values, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHBetween(Double value1, Double value2) {
            addCriterion("max_h between", value1, value2, "maxH");
            return (Criteria) this;
        }

        public Criteria andMaxHNotBetween(Double value1, Double value2) {
            addCriterion("max_h not between", value1, value2, "maxH");
            return (Criteria) this;
        }

        public Criteria andMinHIsNull() {
            addCriterion("min_h is null");
            return (Criteria) this;
        }

        public Criteria andMinHIsNotNull() {
            addCriterion("min_h is not null");
            return (Criteria) this;
        }

        public Criteria andMinHEqualTo(Double value) {
            addCriterion("min_h =", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHNotEqualTo(Double value) {
            addCriterion("min_h <>", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHGreaterThan(Double value) {
            addCriterion("min_h >", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHGreaterThanOrEqualTo(Double value) {
            addCriterion("min_h >=", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHLessThan(Double value) {
            addCriterion("min_h <", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHLessThanOrEqualTo(Double value) {
            addCriterion("min_h <=", value, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHIn(List<Double> values) {
            addCriterion("min_h in", values, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHNotIn(List<Double> values) {
            addCriterion("min_h not in", values, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHBetween(Double value1, Double value2) {
            addCriterion("min_h between", value1, value2, "minH");
            return (Criteria) this;
        }

        public Criteria andMinHNotBetween(Double value1, Double value2) {
            addCriterion("min_h not between", value1, value2, "minH");
            return (Criteria) this;
        }

        public Criteria andCo2IsNull() {
            addCriterion("co2 is null");
            return (Criteria) this;
        }

        public Criteria andCo2IsNotNull() {
            addCriterion("co2 is not null");
            return (Criteria) this;
        }

        public Criteria andCo2EqualTo(Double value) {
            addCriterion("co2 =", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2NotEqualTo(Double value) {
            addCriterion("co2 <>", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2GreaterThan(Double value) {
            addCriterion("co2 >", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2GreaterThanOrEqualTo(Double value) {
            addCriterion("co2 >=", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2LessThan(Double value) {
            addCriterion("co2 <", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2LessThanOrEqualTo(Double value) {
            addCriterion("co2 <=", value, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2In(List<Double> values) {
            addCriterion("co2 in", values, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2NotIn(List<Double> values) {
            addCriterion("co2 not in", values, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2Between(Double value1, Double value2) {
            addCriterion("co2 between", value1, value2, "co2");
            return (Criteria) this;
        }

        public Criteria andCo2NotBetween(Double value1, Double value2) {
            addCriterion("co2 not between", value1, value2, "co2");
            return (Criteria) this;
        }

        public Criteria andWindIsNull() {
            addCriterion("wind is null");
            return (Criteria) this;
        }

        public Criteria andWindIsNotNull() {
            addCriterion("wind is not null");
            return (Criteria) this;
        }

        public Criteria andWindEqualTo(Double value) {
            addCriterion("wind =", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindNotEqualTo(Double value) {
            addCriterion("wind <>", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindGreaterThan(Double value) {
            addCriterion("wind >", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindGreaterThanOrEqualTo(Double value) {
            addCriterion("wind >=", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindLessThan(Double value) {
            addCriterion("wind <", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindLessThanOrEqualTo(Double value) {
            addCriterion("wind <=", value, "wind");
            return (Criteria) this;
        }

        public Criteria andWindIn(List<Double> values) {
            addCriterion("wind in", values, "wind");
            return (Criteria) this;
        }

        public Criteria andWindNotIn(List<Double> values) {
            addCriterion("wind not in", values, "wind");
            return (Criteria) this;
        }

        public Criteria andWindBetween(Double value1, Double value2) {
            addCriterion("wind between", value1, value2, "wind");
            return (Criteria) this;
        }

        public Criteria andWindNotBetween(Double value1, Double value2) {
            addCriterion("wind not between", value1, value2, "wind");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeIsNull() {
            addCriterion("irrigation_type is null");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeIsNotNull() {
            addCriterion("irrigation_type is not null");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeEqualTo(String value) {
            addCriterion("irrigation_type =", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeNotEqualTo(String value) {
            addCriterion("irrigation_type <>", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeGreaterThan(String value) {
            addCriterion("irrigation_type >", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeGreaterThanOrEqualTo(String value) {
            addCriterion("irrigation_type >=", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeLessThan(String value) {
            addCriterion("irrigation_type <", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeLessThanOrEqualTo(String value) {
            addCriterion("irrigation_type <=", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeLike(String value) {
            addCriterion("irrigation_type like", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeNotLike(String value) {
            addCriterion("irrigation_type not like", value, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeIn(List<String> values) {
            addCriterion("irrigation_type in", values, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeNotIn(List<String> values) {
            addCriterion("irrigation_type not in", values, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeBetween(String value1, String value2) {
            addCriterion("irrigation_type between", value1, value2, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andIrrigationTypeNotBetween(String value1, String value2) {
            addCriterion("irrigation_type not between", value1, value2, "irrigationType");
            return (Criteria) this;
        }

        public Criteria andCropIdIsNull() {
            addCriterion("crop_id is null");
            return (Criteria) this;
        }

        public Criteria andCropIdIsNotNull() {
            addCriterion("crop_id is not null");
            return (Criteria) this;
        }

        public Criteria andCropIdEqualTo(Integer value) {
            addCriterion("crop_id =", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdNotEqualTo(Integer value) {
            addCriterion("crop_id <>", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdGreaterThan(Integer value) {
            addCriterion("crop_id >", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("crop_id >=", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdLessThan(Integer value) {
            addCriterion("crop_id <", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdLessThanOrEqualTo(Integer value) {
            addCriterion("crop_id <=", value, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdIn(List<Integer> values) {
            addCriterion("crop_id in", values, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdNotIn(List<Integer> values) {
            addCriterion("crop_id not in", values, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdBetween(Integer value1, Integer value2) {
            addCriterion("crop_id between", value1, value2, "cropId");
            return (Criteria) this;
        }

        public Criteria andCropIdNotBetween(Integer value1, Integer value2) {
            addCriterion("crop_id not between", value1, value2, "cropId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}